package com.order.service;

import com.order.dao.Cart;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface CartService {
    int addCart(Cart cart);
    int updateCart(Cart cart);
    int deleteCart(int desk_id);
    int deleteCartById(int id);
    Cart getById(int id);
    int judgeExit(Map<String,Object> map);
    Cart getCart(Map<String,Object> map);
    List<Cart> getCarts(int desk_id);
}
